package com.demo.test1.service.impl;

import com.demo.test1.service.IUserService;

public class UserServiceLogProxy implements IUserService {
    private IUserService iUserService;

    public UserServiceLogProxy(IUserService iUserService) {
        this.iUserService = iUserService;
    }

    public void addUser(String name) {
        System.out.println("addUser开始执行");
        iUserService.addUser(name);
        System.out.println("addUser执行完成");
    }

    public void deleteUser(String name) {
        System.out.println("deleteUser开始执行");
        iUserService.deleteUser(name);
        System.out.println("deleteUser执行完成");
    }
}
